package com.wang.blog.dao;

import com.wang.blog.model.MeCategory;
import com.wang.blog.model.MeCategoryExample;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * MeCategoryDAO继承基类
 */
@Repository
public interface MeCategoryDAO extends MyBatisBaseDao<MeCategory, Integer, MeCategoryExample> {

    @Select("select count(*) from me_article where category_id=#{categoryid}")
    Integer listArtclesByCategory(Integer categoryid);
}